package org.wzl.todolisthelper.enumerate;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.wzl.todolisthelper.dto.CommonActionSheet;

import java.util.List;

@Getter
@AllArgsConstructor
public enum TaskPriorityEnum {

    LOW(new CommonActionSheet("low", "低")),
    MEDIUM(new CommonActionSheet("medium", "中")),
    HIGH(new CommonActionSheet("high", "高"));

    private final CommonActionSheet commonActionSheet;

    public static List<CommonActionSheet> getAll() {
        return List.of(
                LOW.getCommonActionSheet(),
                MEDIUM.getCommonActionSheet(),
                HIGH.getCommonActionSheet()
        );
    }

}
